#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2017/5/2 下午7:19
# @Author  : zhangzhen
# @Site    : 
# @File    : svm_multi.py
# @Software: PyCharm
from sklearn.svm import SVC,LinearSVC

if __name__ == '__main__':

    X = [[0], [1], [2], [3]]
    Y = [0, 1, 2, 3]

    '''
    SVC and NuSVC 
    '''
    clf = SVC(decision_function_shape='ovo')  # ovo为一对一
    clf.fit(X, Y)
    print "SVC:", clf.fit(X, Y)
    pass